

add_subdirectory(mavlink)

target_include_directories(${PROJECT_NAME} 
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/sbus
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/telegram)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} communication_common_src)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/sbus sbus_src)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/telegram telegram_src)

target_sources(${PROJECT_NAME}
    PRIVATE ${communication_common_src}
    PRIVATE ${sbus_src}
    PRIVATE ${telegram_src})